package com.example.exception;

import com.example.enums.ResultEnum;

/**
 * 
* @ClassName: GirlException 
* @Description: TODO(自定义异常) 
* @author 强哥 
* @date 2017年12月12日 下午5:42:17 
*
 */
public class GirlException extends RuntimeException{
	private Integer code;

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public GirlException(ResultEnum resultEnum) {
		super(resultEnum.getMsg());
		this.code = resultEnum.getCode();
	}

	public GirlException(Integer code,String message) {
		super(message);
		this.code = code;
	}
	
}
